import {createMemoryHistory, createRouter, createWebHistory} from 'vue-router'
import index from '@/pages/index/index.vue'
import withdraw from '@/pages/withdraw/index.vue'
import swap from '@/pages/swap/index.vue'
import share from '@/pages/share/index.vue'
import account from "@/pages/account/index.vue";
import whitepaper from "@/pages/whitepaper/index.vue";


const routes = [
    {
        path: '/',
        name: 'index',
        component: index
    },
    {
        path: '/account',
        name: 'account',
        component: account
    },
    {
        path: '/share',
        name: 'share',
        component: share
    },
    {
        path: '/withdraw',
        name: 'withdraw',
        component: withdraw
    },
    {
        path: '/swap',
        name: 'swap',
        component: swap
    },
    {
        path: '/whitepaper',
        name: 'whitepaper',
        component: whitepaper
    }
]
const router = createRouter({
    history: createMemoryHistory(),
    // history: createWebHistory(),
    routes,
})

export default router